package org.nokatag.code;

public class DoubleRippleImageOp extends RippleImageOp
{

    public DoubleRippleImageOp()
    {
    }

    protected void transform(int x, int y, double t[])
    {
        double tx = Math.sin((double)y / yWavelength + yRandom) + 1.3D * Math.sin((0.59999999999999998D * (double)y) / yWavelength + yRandom);
        double ty = Math.cos((double)x / xWavelength + xRandom) + 1.3D * Math.cos((0.59999999999999998D * (double)x) / xWavelength + xRandom);
        t[0] = (double)x + xAmplitude * tx;
        t[1] = (double)y + yAmplitude * ty;
    }
}
